package org.will.test.domain.builder;

import org.will.test.domain.MsgType;
import org.will.test.domain.PayOutMessage;

/**
 * Created by jsycwangwei on 2017/7/9.
 */
public class PayXmlOutMessage extends PayOutMessage{
    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public PayXmlOutMessage(){
        this.type = MsgType.XML;
    }

    @Override
    public String toString() {
        return "<xml><return_code><![CDATA[" + code + "]]></return_code><return_msg><![CDATA[" + content
                + "]]></return_msg></xml>";
    }
}
